using System;
using UnityEngine;

[Serializable]
public class animate : MonoBehaviour
{
	public Texture2D[] frames;

	public float framesPerSecond;

	public animate()
	{
		framesPerSecond = 10f;
	}

	public void Update()
	{
		int num = (int)(Time.time * framesPerSecond);
		num %= frames.Length;
		gameObject.GetComponent<GUITexture>().texture = frames[num];
	}

	public void Main()
	{
	}
}
